const koaRouter = require("@koa/router");

const userRouter = new koaRouter({ prefix: "/users" });

const UserController = require("../controller/user.controller");

const { verifyUser, handlePassword } = require("../middleware/use.middleware");
// 用户注册接口
userRouter.post("/", verifyUser, handlePassword, UserController.create);

// 用户登陆接口

// userRouter.post("/login", LoginController.create);

module.exports = userRouter;
